﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Aspnetcore.CityInfo.Model.Entities
{
    public class City
    {
//        [Key]
//        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Required]
        [MaxLength(50)]
        public string Name { get; set; }

        [MaxLength(200)]
        public string Description { get; set; }

        public ICollection<PointOfInterest> PointsOfInterest { get; set; } = new List<PointOfInterest>();
    }
}